com.sabro.jbusiness.gui.formTreeTable
Class ObjectNode

java.lang.Object
  extended by com.sabro.jbusiness.gui.formTreeTable.ObjectNode

public class ObjectNode
extends java.lang.Object


Constructor Summary
ObjectNode(java.lang.Comparable<?> object)
           
ObjectNode(ObjectNode objectNodeParent, java.lang.Comparable<?> object)
           
 
Method Summary
 ObjectNode[] addChildren(java.lang.Comparable<?>[] path)
           
 void addChildren(ObjectNode objectNode)
           
 void clear()
           
 ObjectNode[] getChildren()
           
 ObjectNode[] getChildrenOrdered()
           
 TreeTableComparator getComparator()
           
 int getDeep()
           
 int getIndexOf(ObjectNode objectNode)
           
 int getMaxDeepFromHere()
          Informa a número de máximo de níveis que existem abaixo deste.
 java.lang.Comparable<?> getObject()
           
 ObjectNode getObjectNode(int index)
           
 ObjectNode getObjectNodeParent()
           
 java.util.ArrayList<ObjectNode> getObjectNodes()
           
 int getWidth()
           
 int getWidthOfChildren()
           
 int getWidthTotal()
           
 void invalidaObjectNodes()
          Indica que a relação linearizada de objectNodes é inválida.
 boolean isExpanded()
           
 boolean isLeaf()
           
 boolean pathBelongsTo(java.lang.Comparable<?>[] path, int deph, ObjectNode objectNode)
           
 boolean pathBelongsTo(java.lang.Comparable<?>[] path, ObjectNode objectNode)
           
 void removeChildren(ObjectNode objectNode)
           
 void setComparator(TreeTableComparator comparator)
           
 void setIsExpanded(boolean isExpanded)
           
 void setWidth(int width)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectNode

public ObjectNode(java.lang.Comparable<?> object)

ObjectNode

public ObjectNode(ObjectNode objectNodeParent,
                  java.lang.Comparable<?> object)
Method Detail

getObjectNodeParent

public ObjectNode getObjectNodeParent()

getObject

public java.lang.Comparable<?> getObject()

isLeaf

public boolean isLeaf()

setIsExpanded

public void setIsExpanded(boolean isExpanded)

isExpanded

public boolean isExpanded()

getChildren

public ObjectNode[] getChildren()

setComparator

public void setComparator(TreeTableComparator comparator)

getComparator

public TreeTableComparator getComparator()

getChildrenOrdered

public ObjectNode[] getChildrenOrdered()

addChildren

public ObjectNode[] addChildren(java.lang.Comparable<?>[] path)

addChildren

public void addChildren(ObjectNode objectNode)

pathBelongsTo

public boolean pathBelongsTo(java.lang.Comparable<?>[] path,
                             ObjectNode objectNode)

pathBelongsTo

public boolean pathBelongsTo(java.lang.Comparable<?>[] path,
                             int deph,
                             ObjectNode objectNode)

clear

public void clear()

removeChildren

public void removeChildren(ObjectNode objectNode)

setWidth

public void setWidth(int width)

getWidth

public int getWidth()

getWidthTotal

public int getWidthTotal()

getWidthOfChildren

public int getWidthOfChildren()

getDeep

public int getDeep()

getMaxDeepFromHere

public int getMaxDeepFromHere()
Informa a número de máximo de níveis que existem abaixo deste.

Returns:

getObjectNodes

public java.util.ArrayList<ObjectNode> getObjectNodes()

getObjectNode

public ObjectNode getObjectNode(int index)

getIndexOf

public int getIndexOf(ObjectNode objectNode)

invalidaObjectNodes

public void invalidaObjectNodes()
Indica que a relação linearizada de objectNodes é inválida.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object